package com.ocom.wxapi.client;

import com.ocom.common.constant.EmqxUrl;
import com.ocom.common.entity.emqx.EntityYhMqtt0606;
import com.ocom.common.entity.emqx.EntityYhMqtt0607;
import com.ocom.common.request.emqx.YhMqtt0606Request;
import com.ocom.common.request.emqx.YhMqtt0607Request;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "emqx")
public interface EmqxClientService {
    @PostMapping(EmqxUrl.URL_yhMqtt0607)
    public Result<EntityYhMqtt0607> yhMqtt0607(@RequestBody YhMqtt0607Request request);

    @PostMapping(EmqxUrl.URL_yhMqtt0606)
    public Result<EntityYhMqtt0606> yhMqtt0606(@RequestBody YhMqtt0606Request request);
}
